﻿using CommunityToolkit.Mvvm.DependencyInjection;
using Enterprises.Wpf.Sample.ViewModel.Main;
using Microsoft.Extensions.DependencyInjection;

namespace Enterprises.Wpf.Sample.UserControls.Controls
{
    /// <summary>
    /// RelayCommandDemoCtl.xaml 的交互逻辑
    /// </summary>
    public partial class RelayCommandDemoCtl
    {
        public RelayCommandDemoCtl()
        {
            InitializeComponent();

            DataContext = Ioc.Default.GetRequiredService<RelayCommandDemoCtlViewModel>();
        }
    }
}
